• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Log the invoked backend service URL when RestTemplate receives HTTP error status code

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody, I need help with something. I'll try to explain in simple words.

I have Spring Rest Service and I have a GlobalExceptionHandler so when it throws an exception I want to get Http Code Error an the original message from rest service something like this

"/gw/content-service/api/preview/v1/tenant/mexico/pages/homepagesdfsd?view=large&dateTime=2016-11-12T00:00:00.000-0600"
 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roberto, welcome to JavaRanch.

Can you add a bit more detail as to what you've tried so far and where you are facing issue...
reply
    Bookmark Topic Watch Topic
  • New Topic