This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.resttemplatedemo.exception; | |
public class CustomExceptions { | |
public static class ApiException extends RuntimeException { | |
private final int statusCode; | |
private final String responseBody; | |
public ApiException(String message, int statusCode, String responseBody) { | |
super(message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.resttemplatedemo.handler; | |
import com.example.resttemplatedemo.exception.CustomExceptions; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.client.ClientHttpResponse; | |
import org.springframework.web.client.ResponseErrorHandler; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://windsurf.com/refer?referral_code=5f0baeeafb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to delete remote Git branches older than 1 year | |
# Usage: ./delete_old_branches.sh [remote_name] [--dry-run] | |
# Default remote is 'origin' | |
set -e | |
# Configuration | |
REMOTE_NAME="${1:-origin}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AMEX - Platinum Cashback Everyday Credit Card | |
Get upto £20 reward when using the link - https://americanexpress.com/en-gb/referral/platinum-cashback-everyday?ref=sACHIHzjmh&CPID=999999554 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
💡 Switch to Hyperoptic & Get Rewarded! | |
Get lightning-fast full fibre broadband — and earn up to £100 in vouchers when you join using my link: | |
👉 https://refer.hyperoptic.com/sachinh-32 | |
Here’s how it works: | |
Sign up via the link above |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Join Monzo using the below link and get £10 when you sign up and make your first card payment. Super easy! | |
👉 https://join.monzo.com/c/14syg99j |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use my Wise referral link to get: | |
✅ Fee-free transfer up to £500 OR | |
✅ Free Wise debit card (if available in your country) | |
👉 https://wise.com/invite/arhn/sachinh20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get 10% off on first order - Fiverr - https://www.fiverr.com/pe/BRXWk3k | |
#Fiverr | |
#GigWork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get £50 credit - EON Next - https://share.eonnext.com/coral-ibex-1417 | |
#EnergySupplier | |
#EONNext | |
#EON | |
#SupplierChange |
NewerOlder